Lockheed Martin Interview Question

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