Recursion - subsequences

It is giving wrong in all test cases, what is wrong in the code??


refer to this code
i guess the output format varies