Sayed Atif Ali's submission of Fun with Rotation | CodeChef