Question d’entretien chez Google

A DSA question based on Dynamic Programming.