Pergunta de entrevista da empresa Fenergo

Coding challenge was related to array permutation.