Pregunta de entrevista de Applied Visions

Find all permutations of a string.