Pergunta de entrevista da empresa Capital One

The coding challenge dealt with generating permutations.