Convert a sentence into its equivalent mobile numeric keypad sequence-Data Structure and Algorithms
Given a sentence in the form of a string, convert it into its equivalent mobile numeric keypad sequence
Input : STRIVE Output : 7777877744488833 For obtaining a number, we need to press a number corresponding to that character for number of times equal to position of the character. For example, for character C, we press number 2 three times and accordingly. Input : HELLO WORLD Output : 4433555555666096667775553
Solution:
Thank You


