Perficient interview question

Write a function that determines if a string is a palindrome.