Print permutations of a string