Domanda di colloquio di Amazon

leetcode two pointer question, dynamic programming question