Chewbacca and number

can u see where my testcase is getting wrong

@Sumant123 Attach your code, then only I will be able to rectify the problem.

@Sumant123 For 9999 the output will be 9000, your code is giving 0, there will not be any leading zeroes, so handle this case.
If you have doubt lemme know.