Question d’entretien chez Apple

Data structures and algorithms coding question