Test Case 2 failing for snakes and ladders


Tell me where its going wrong. Thanks.

@Shubh_rmcf07 Let me go through your code

@Shubh_rmcf0 7 YOur code is failing this case.
10
2
5 66
9 88
1
67 8
1
3 90
7
99 10
97 20
98 30
96 40
95 50
94 60
93 70
2
5 66
9 88
1
67 8
1
3 90
7
99 10
97 20
98 30
96 40
95 50
94 60
93 70
2
5 66
9 88
1
67 8
1
3 90
7
99 10
97 20
98 30
96 40
95 50
94 60
93 70
2
5 66
9 88
1
67 8
1
3 90
7
99 10
97 20
98 30
96 40
95 50
94 60
93 70
2
5 66
9 88
1
67 8
1
3 90
7
99 10
97 20
98 30
96 40
95 50
94 60
93 70
I hope you’ll be able to check it now

What is the expected output?

Figured it! Thanks a lot!!

@Shubh_rmcf07 No problem dude