Pregunta de entrevista de Walt Disney Company

dynamic programming leetcode style question