Spectrum Interview Question

Write code that can identify a palindrome.