Snake And Ladder Problem

1 test case failed why?
Solution Link-https://ide.codingblocks.com/s/73021
Ignore it i got my error.
How can i delete my query(asked question) if i posted it by chance?

just mark it resolved on your portal.

what was the error? may be i am facing the similar issue. And also can anyone tell me when no solution occur?