Longtop interview question

write a program to check if input string is palindrom