Keypad problem recursion

Could u plz suggest some changes in my code I guess there is problem with my input variable string concatenation

what is the problem that you are facing ?

I solved it and closed the doubt