SmartKeypad - I

Whats going wrong here,??
One test case is failing.

Try 101 as the input. Your code has some issues with 0 try to correct it.

Can u tell me whats the correct output?