Lockheed Martin interview question

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