LinkedIn interview question

Design function that can determine whether a given string is a palindrome.