Question d’entretien chez Amazon

Dynamic Programming kind of question