here first exact digit form given string
it may be one digit or 2 digit(only when we are not at last character)
now include it into output string
and call recursion for rest of string
if you are not able to understand and specific section of code let me know