Wayfair interview question

To find palindrome in a given string