Regarding the test cases

I have passed one test case but I am unable to get why other cases are being failed.

Hello @punetha.anmol001 your logic is partially correct.
though i have corrected your logic and it is now passing every test case:


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

Thank you sir, got the point.

Hello @punetha.anmol001 you can mark this doubt as resolved.
Happy Learning !!

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.