Question d’entretien chez Apple

How would you code a solution