Pregunta de entrevista de Numbrs

Dynamic programming problem on HackerRank platform.