Squarepoint Capital Interview Question

Dynamic programming leetcode medium + probability