! test case not passed
Pranav plz try to use 2-D char array in your code as :
char table[][10]={" ", “.+@$”, “abc”, “def”, “ghi”, “jkl” , “mno”, “pqrs” , “tuv”, “wxyz” };
and then in your function once you have your digit variable , use this kind of loop :
for(int k=0;table[digit][k]!=’\0’;k++)
{
output[j]=table[digit][k];
printkeypad(input,output,i+1,j+1);
}
in java, array is not terminated by null character as in c++