Domanda di colloquio di Walt Disney Company

dynamic programming leetcode style question