Pergunta de entrevista da empresa Upwork

Automation Assignment. Calculating all possible permutations for an array with different characters