Cognizant interview question

write program to check if string is pallindrome or not