adding string permutations solution