Wrong answer for this code

i am getting wrong answer through this code… since in testcases the subsequences are in reverse order and i am not able to approach that
here is my code

@aditikandhway exclude first to print in reverse order

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.