Galil Software interview question

Write a function that checks whether a string is a palindrome