I haver to create all permutations of an input string and remove duplicates, if present. This means I have to shuffle all letters from the input in all possible orders.