Question d’entretien chez Microsoft

A problem based on 2 pointers