Mapped strings unable to generate sub string of the number itself

Unable to generate all the substrings of the number after storing its digit in array
I am not able to understand the logic with recursion for generating sub strings

@piyush.bansal8158625 Here you need to partition the given number such that each partition contains a number <=26. Say if sample input is 123, then you can partition in following ways:
1|2|3 —> ABC
1|23 -----> AW
12|3 -----> LC
So take input the number in the form of a string so that it is easy to partition.

Refer this code to understand the recursive relation: