OneDirect (India) interview question

How will you write a program to find-out if given string is Palindrome