Pergunta de entrevista da empresa Lockheed Martin

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