Last two test case not passing

link to code https://ide.codingblocks.com/s/204728
please help with the error

Your code is not working properly for cases with 0s .Please dry run and check for these case:

Input:
9009
Expected O/p:
9000
Your O/p:
9

Input:
98700
Your code does not give any output

Expected o/p:
91200

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.