Takes string and prints all permutations of it