Wayfair Interview Question

To find palindrome in a given string