Sollicitatievraag bij Squarepoint Capital

Dynamic programming question, simple probability theory problem