Snakes and laddder problem

sir why i am not getting any output

  1. make the board of size x+1
  2. when there is a snake or ladder jump is difference of those two cell values see in the modified Code

Modified Code

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask