Plz see where i went wrong . I did as you have explained in print subsequences lecture
Showing wrong answer
Hey @Vishu_1801 You need to print all the sequences of a string in lexicographic order.
Add all sequences to the arraylist.
At the end sort the whole arraylist.
// sort ArrayList
Collections.sort(list);
you can see this