Question d’entretien chez F5

Some variation of Permutations II from LeetCode