Pergunta de entrevista da empresa Walt Disney Company

dynamic programming leetcode style question