Galil Software Interview Question

Write a function that checks whether a string is a palindrome