Leetcode 1682. Longest Palindromic Subsequence II | Hello Interview