Domanda di colloquio di Lyft

Medium dynamic programming question from leetcode.