Smart Keypad Problem

Why is one test case failing?
Code : https://ide.codingblocks.com/s/201559

@Chirag-Jain-1414278322030453
Check now

Thanks for your help!