Get all subsequences With ASCII

https://hack.codingblocks.com/submission/2321453/

I have submitted the solution on hackerblocks. Answer is coming for given testcase but submission is incorrect.

Please check the solution and help me solve the problem.

Hi Mohit,
Send your code.

Hi Mohit,
You have to also print the count of total subsequences, for exaple for input ab the correct output will be:
b 98 a ab a98 97 97b 9798
9

as there are 9 subsequences.

yeah It’s working now.
Thanks sanyam jain.