Pergunta de entrevista da empresa Microsoft

Q: Given a string, write a function to determine if it is a palindrome.