Question d’entretien chez Yelp

A basic combinatorics algorithm question.