Mphasis Interview Question

Write a program to check string is palindrome or not ?