Pregunta de entrevista de Meta

Dynamic programming from leetcode website