Question d’entretien chez Microsoft

How would you solve this problem.