What should be considered for ) in keypad

problem:
https://hack.codingblocks.com/contests/c/259/356

test cases only contain string having characters as 1 to 9 .
there is no string which has ) as character

Thank you…