Wrong Answer for testcases

I don’t know why this issue is happening with me for every other problem, but my code runs fine in any online java compiler but not here. Please check for any errors, in case they are present. I created an ArrayList of subseq, sorted it and printed the result

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.