Pregunta de entrevista de Rebel Foods (Formerly Faasos)

A dynamic programming problem .