Author-it Software interview question

Write code to figure out if a string is a palindrome. Write test cases.