Dictionary Order - Larger

Can you guide me what am I doing wrong in this ?

@abhishekjohri98,
Your code is not passing the sample test case.

First make all the permutations by recursion and store them in an arraylist or a hashset (hashset will contain only the non duplicates). Now sort the arraylist/hashset and print your answer.