Perficient Interview Question

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