Smart-keypad 1 problem

https://ide.codingblocks.com/s/54969

the code is showing wrong answer in one test case. how to rectify it ?

Hey Yukti, remove this part from your code
if(digit==0)
{
printkeypadstrings(input,output,i+1,j);
}
as if you give input = 02 the output should be a, b, c