Question d’entretien chez Microsoft

1 coding question which was pretty straight forward