Question d’entretien chez Compass

Dynamic programming algorithm problem