Squarepoint Capital interview question

Dynamic programming question, simple probability theory problem