a better clean way to find all permutation of a string / number array.