Microsoft Interview Question

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