Number of cycles

Problem Name:
Number of cycles
Site:HackerEarth
Links:
Tags:
Problem setters: