Tricky Permutation Problem


it not passing 2/9 test cases

@vivekpatel
for input AAA
your o/p
AAA
AAA
AAA
correct:
AAA
you are not removing the duplicates correctly

I hope your doubt is cleared.
Dont forget to mark resolved on my doubts section @vivekpatel :smiley: