Question d’entretien chez Lockheed Martin

Write a function to find out whether a string is a palindrome.