Meta Interview Question

Dynamic programming from leetcode website