I think my code is correct

Code is correct ,i think the sample test case given is wrong .
Please check my code

Hello @mayurjhode55 the code which you have uploaded for the very first time is correct and passing every test case:
and the sample test case is correct.


this code of yours is correct.
Happy Learning!!