Question d’entretien chez Abbott

Leetcode medium question (Dynamic Programming)