Getty Images Interview Question

How to identify a palindrome in a string