Question d’entretien chez Conviva

Whiteboard type algorithm dynamic programming question.