Recursion-Subsequences , sun successfully but showing wrong answer during submission

https://ide.codingblocks.com/s/67597
what change should i do in this code so that it can be submit successfully

@Anshumanchaursiya hey your output string should match with output string so please try to optimise once again with the sample one

yes answer is not matching but i want to know the changes that should be done in the code for correct output as required

@Anshumanchaursiya you can use set to store the subsequence then print it or you can generate the susequence recursively.

Hey Anshuman,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.