Domanda di colloquio di Squarepoint Capital

coding question with two pointers