Not getting correct output


please check my code

@shivamgoel150
I suppose you have sent the wrong code because this is not the code for snakes and ladders question.
Please send the relevant one.