Yahoo interview question

Check if a string is palindrome?