https://www.codechef.com/problems/CRCLJUMP

https://www.codechef.com/problems/CRCLJUMP

can someone explain me the solution to this question.
Thankyou.