Squarepoint Capital Interview Question

some programming problems, math and stats problem