Applied Visions interview question

Find all permutations of a string.