finding the permutation of the characters in a string without duplicates