What's wrong with this Code?

Can someone please tell me the test cases at which the code is not giving the proper output.

Problem Statement:- DIGJUMP Problem - CodeChef
Solution:- CodeChef: Practical coding for everyone

0111111112302
your code gives: 4
ans: 2

2 Likes