Longtop Interview Question

write a program to check if input string is palindrom