Generate Subsequence Recursion

How can I store all the subsequence in a vector like if we want to perform some operation on generated subsequence.
here we are just printing out sequence in function only.

@lakshyatoshniwal instead of printing store it in array of strings which is declared global