Code working fine with custom test cases but fails with system test cases

when I run the code with same custom input as that of second case my code works fine but when I submit the same code the second test case fails which works fine when I provide it as custom input.

Hi @pjain
Share your code ide so that i can have a look.