Question d’entretien chez Covalense Global

Coding question regarding dp in python