Apple interview question

To verify if a string is palindrome or not.