Add permutations string problem