Question d’entretien chez JPMorganChase

A somewhat common dynamic programming problem.