Test Case 2 and 4

My Test cases 2 and 4 aren’t running and I’m not able to get the mistake. Kindly help.

@sukritbansal01
Please attach your code. I will be able to help you after that.

@sukritbansal01
It is mentioned in the question that the first digit cannot be zero but if the first digit is 9, it will be set to zero according to your code. Please correct that.

If my answer was able to answer your query, please mark the doubt as resolved.

No. I did consider that. That’s the first condition in for loop.

@sukritbansal01
Your code is running fine on 2 and 4. I tried them on my ide and it worked. Must be a system error. Let me verify it. Will get back to you ASAP.

It is still not working.

Kindly help with this query