Topic: Backtracking Problem / Level: advanced

Problem: Generate all valid permutations of a given string with potential duplicates in characters.

Run the code to see the output here...