Question d’entretien chez Apple

How would you tackle this problem?