Chevron interview question

Write a program to check if a given string is a palindrome