TikTok interview question

longest palindrome subsequence. Its the same in the leetcode