Prime Focus interview question

write code to find all permutations of string.