what is the error ? que snake and ladder on gfg.
refer https://www.geeksforgeeks.org/snake-ladder-problem-2/