LinkedIn Interview Question

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