Mapped Strings: Unable to understand the solution

Hi I am unable to understand the solution.

Hey @Ans
Your code is printing all subsequences of the input. The purpose of the question is different. https://www.geeksforgeeks.org/count-possible-decodings-given-digit-sequence/
This has a beautifully detailed solution of the question. Check this out.