Prashant Mahesh's submission of Fun with Rotation | CodeChef