It is not clear whether we have to return the count of subsequences or print the subsequences please clarify it??
Regarding output of the program
Hi Indrajeet
You need to print both the subsequences and the count of the subsequences as mentioned in the output format too.