Verys interview question

Write a function to determine whether a string is a palindrome.