Capgemini Interview Question

He asked write a program to check whether a string is palindrome or not.