Amazon interview question

Leetcode - Medium - Longest Palindromic Subsequence