Question d’entretien chez Microsoft

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