Verisign interview question

Code a method to detect a palindrome