2 of the 3 test cases passed please tell what is wrong with my code?

this is the link to the code for replacing zeroes with fives

Hi Arya… what u can simply do is convert the integer to string and then just traverse over it and change 0–>5

https://ide.codingblocks.com/s/608792 refer this if u still have any doubt

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.