Question d’entretien chez Prime Focus

write code to find all permutations of string.