Question d’entretien chez Snap

leetcode question, dynamic programming question