Question d’entretien chez Amazon

LeetCode Array-based question solved using DP