Hackerrank: game of rotation - https://www.hackerrank.com/challenges/game-of-rotation
Method 1 - Simple logic