Why isnt some testcases passing?

what is wrong with the code .

@anushreemahur5,
Corrected code, here.