Test cases not passing


is the code that i have i summited but it is unable to pass the test cases please help.

@Siddharth6780 I have corrected your code. Try to see the possible cases and then remove the redundant cases for simplicity.


if you cannot get it, please comment.