Question d’entretien chez PDT Partners

A problem related with dynamic programming.