Optiver Interview Question

Dynamic Programming Leetcode style question