Recursion-Subsequences

I could not understand from the video how the two consecutive recursion calls are interacting with each other.
Hence,I am not able to reverse the order in which the subsequences are displayed.

Hey @GreatCoderboy123 you should try to make the recursive stack yourself and try to figure out how its working. Remeber that if you dont send an argument by reference, any two consecutive calls to the function will be independent of each other. But in a particular function call, you have to consider both cases where a character is taken into consideration, or not. Any changes made to the string in one function call will be reflected in that function call.

Ok…

@GreatCoderboy123 please mark your doubt as resolved if you are satisfied.