Question d’entretien chez Squarepoint Capital

coding question with two pointers