Half Test cases not passed?

What corner case am i miisiing ?

@abhishek.personal.email You need to break from that matching loop once you find a distinct character. Please take a look at your corrected code https://ide.codingblocks.com/s/187568

@abhishek.personal.email If you don’t have any further queries please mark the doubt as resolved.