Question d’entretien chez Amazon

combinatorics programming question using recursion