Question d’entretien chez Microsoft

How can you solve this challenge?