Question d’entretien chez Squarepoint Capital

a dynamic programming leetcode problem