I had seen one problem on facebook hacker cup round 1 2019. The problem name was Ladders and Snakes. Can anyone help to me understand its solution.
Link for contest-
https://www.facebook.com/hackercup/contest
Please upvote my query if my problem is right