Pregunta de entrevista de Infosys

Dynamic programming question medium level leetcode