Arista Networks Interview Question

Return all possible permutations of a word.