Sky interview question

String is palindrome or not in c++