Pregunta de entrevista de Squarepoint Capital

There are two coding questions.