Domanda di colloquio di Squarepoint Capital

Dynamic programming question, simple probability theory problem