Code Problem - didn't get submitted

Code is correct and show the correct output but still it’s showing that test cases are wrong and my code didn’t get submitted. Please guide me where did i go wrong in this code?

as i can see
now you have passed all testcase

if you have any further doubt in this
feel free to ask

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.