Pergunta de entrevista da empresa Prime Focus

write code to find all permutations of string.