Meta Interview Question

Dynamic programming problem from Leetcode