LeetCode
Longest Palindromic Subsequence
Click
here
for an explanation.