Pregunta de entrevista de Squarepoint Capital

some programming problems, math and stats problem