Capital One Interview Question

The coding challenge dealt with generating permutations.