Pergunta de entrevista da empresa LinkedIn

For the first technical phone screen, the questions involved permutations (Scramble an array with an equal chance for every value. Return a list of all permutations of an array.).