2002. Maximum Product of the Length of Two Palindromic Subsequences (Leetcode Medium)