RECURSION-SUBSEQUENCES question

my code is giving correct result
https://ide.codingblocks.com/s/75493 1 solution
https://online.codingblocks.com/player/12476/content/6016/4894 1 problem link

Aditya, the output should be in the following format for sample input : abcd

d c cd b bd bc bcd a ad ac acd ab abd abc abcd
16

But your output is different, try to either change the order of recursive calls you made, or simply follows some other approach. Feel free to ask if you will not be able to understand .