Help With my Solution[SNELECT]

Question Link is :-

Solution Link:-
https://www.codechef.com/viewsolution/28004605
Can You Point out What am i doing wrong here?

Consider the testcase:

1
ssmsms
2 Likes

Thanks used break instead of continue.That Was the Mistake.

1 Like