Zoho interview question

Write a program to check palindrome