Domanda di colloquio di Squarepoint Capital

code task about dynamic programming, simple probabiltiy question