Recursion-DictionaryOrder(Larger)

Test case 2 not passing… help!!!

@gauravrai628 Please save the code in codingblocks ide and share its link.

Code : https://ide.codingblocks.com/s/124393

@gauravrai628 Your answers/ permutations are correct but due to the difference in the order of output, test case 2 is getting wrong.
Consider the test case:
231

Expected Output:( according to the fixed test case)
321
312

Your Output:
312
321

Here you are not always required to get the output in sorted order. You have to print the order just as that generated by recursion. Refer this solution:

Thanks got it…