Accenture Interview Question

writing a c++ program to check for a palindrome