Anduril interview question

Leetcode 647. Palindromic Substrings and Leetcode 20. Valid Parentheses