Cyclic shifts

Problem Name:
Cyclic shifts
Site:HackerEarth
Links:
Tags:
Problem setters:
Login to view your/friends' submissions
Login to suggest tags