Wayfair Interview Question

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