Wipro interview question

write a program to check whether a string is palindrome