Pregunta de entrevista de Microsoft

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