Prime Focus Interview Question

write code to find all permutations of string.