Smart Keypad-I Problem

Because of the ‘if’ condition at line 22 in this code, upon submission, one test case is failing.

If i do not write that ‘if’ condition, all the test cases are passing. Why is that so?

hello @anuragdeol2017

dont skip digit 0 ,
for 0 they are considering space

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.