Question d’entretien chez Amazon

leetcode two pointer question, dynamic programming question