Recursion dictionary problem


The code seems to give correct output for example but test cases pass nahi ho rahe

Hello @chiragbaid7,

Your code was not printing the string lexicographically.

I have corrected it:

Hope, this wuld help.
Give a like if you are satisfied.