BMW Group Interview Question

Return all permutations of the letters in a string.