Pregunta de entrevista de Upwork

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