Getty Images interview question

How to identify a palindrome in a string