IGATE Interview Question

Write a program to check if string is palindrome or not?