Question d’entretien chez Google

A DP problem about combinatorics