Minimum rotations

Problem Name:
Minimum rotations
Site:HackerEarth
Links:
Tags:
Problem setters: