Pregunta de entrevista de Meta

Dynamic programming problem from Leetcode