Find the longest palindromic substring | TikTok Interview Question