Pergunta de entrevista da empresa Wayfair

Determine whether a string is a Palindrome or not. Find the Longest Palindromic Substring