Question d’entretien chez Google

Solve a coding problem with dynamic programming