Wipro Interview Question

write a program to check whether a string is palindrome