rohan's submission of Magical Modulo | CodeChef