Recursion-Dictionary(larger)

1 test case is passed.others are failed.Can u help me out this.
This is my link:https://ide.codingblocks.com/s/311175

It is given that the output must be in sorted order. Your code will generate the correct permutations but it is not guaranteed that your output will be sorted. For that…instead of printing in base case…you must push it in a vector in the base case.You should then sort the resulting vector in the main before printing the final result.

Here is a reference code https://ide.codingblocks.com/s/295870