Question d’entretien chez YouTube

A breadth-first search related problem