Zenefits Interview Question

2 Medium-Hard Greedy, DP problems