Generate all the Permutations given a string.