Some wrong answers

this is the ide of my code.

Hello @Shwetatrisal,

You have missed a very important part of the question, which is causing wrong output.
You have to print all the permutations , but without printing any string more than once.

Solution:
check if you should process the string:

  1. if the current element has not occurred before in the given string, then you should perform.
  2. if it has already occurred before, then processing it, would create a copy of previously generated string.

I have modified your code:

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