Only One TestCase Passing

I have tested my code with many testcases,all are giving correct answers.But I really could not understand whats going wrong coz only one testcase is passing others are giving wrong answers.Please help me out.

I cant paste the link.So,how can i share the code with u ?

Hello @sayangosw this is your corrected code:


if you have any doubt you can ask here:
Happy Learning!!

Got my fault , Really Thanks a lot Bhaiya !!!

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.