I just don't know what is wrong with my codes, it work with sample test case given, but when I submit the code one test case gets failed and when I run the same input test case as customized input, my code works for the same input case which is not accepted when I submit but works when I run the input as customized input.


Can anyone tell me why is it happening?