how to reverse the output
Recursion subsequences
Hi @akb.tech17
You can reverse it just by taking a stack of string and instead of printing the out string you can push it into that stack and in the main can empty the stack and print all the strings.
Here is your corrected code :