Hexaware Technologies interview question

Program to check palindrome string