Question d’entretien chez Google

Leet code hard DSA question about dynamic programming