Can some one please tell me what i did wrong in my code as it is passing only one test case

i am able to pass the case that is shown for the problem but other test cases aren’t passing .can someone please correct it.

hey @sarthaksingh, please share your code…

now its resolved
Thanks!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.