Solved generate every permutatino of a string