Pergunta de entrevista da empresa Microsoft

Q: Give all of the permutations for a given non-repeated array.