Meta interview question

Leetcode question common ancestor, valid palindrome