Given a sentence in the form of a string in uppercase, convert it into its equivalent mobile numeric keypad sequence.
The first line of the input contains an integer T denoting the number of test cases. For each test case, there is a string s as an input.
For each test case, the output is a string displaying equivalent mobile numeric keypad sequence.
Note: Whitespace and alphabets are allowed in uppercase only. Whitespace is denoted by 0
For obtaining a number, we need to press a number corresponding to that character for the number of times equal to the position of the character. For example, for character C, we press number 2 three times and accordingly.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.