My code has passed three test cases and failed one, I am unable to know where did it fail

I am getting the correct output as well , because one test case failing this question is not ticked and is not adding to my course progress. Please look into this matter

@vibhor1007 share your code using cb ide please