Pregunta de entrevista de JPMorganChase

A somewhat common dynamic programming problem.