One test case not running, Please help

Sharing my code using CB IDE

@babayaga,
Your code fails on 99999.

Thank you so much it worked!!
Found my mistake