Pergunta de entrevista da empresa Microsoft

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