Wrong answer in one test case of smart Keypad I

wrong answer in test case 2 of the problem… plz check the code.

problem : https://online.codingblocks.com/app/player/39658/content/37364/4740/code-challenge

code : https://ide.codingblocks.com/s/178427

plz check

@sengarankit98
Hello Ankit,
can u please explain ur approach

@sengarankit98
the approach you are trying is not approach.
try to do this problem using recursion

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.