In this I have written the code but it doesn’t work for alll the test cases
Regarding Recursion-Dictionary order(smaller)
Your code is not producing the output in the correct format for sample test case :For eg
Sample input : cab
Expected Output :
acb
abc
bca
bac
Your output :
abc
acb
bac
Plz modify your code a bit.
bca
please send me the code.
Plz send me your modified code so that I could made the changes.