No test case getting passed

All test cases are failing, but codes work correctly for any input I give.

Hi @J19APPPP0007
Please share your code using ide.codingblocks.com .

https://codeshare.io/aJn4JK

@J19APPPP0007
Your order of subsequences is opposite to that expected in the problem.
Try reversing the order of recursive calls .