Print all Unique permutations of a given string.
Given a string that may contain duplicates, the task is find all unique permutations of given string in any order. Examples: Input: "ABC"Output: ["ABC", "ACB", "BAC", "BCA", "CAB", "CBA"]Explanation: Given string ABC has 6 unique permutations as "ABC", "ACB", "BAC", "BCA", "CAB" and "CBA". Input: "A