Spectrum interview question

Write code that can identify a palindrome.