Pergunta de entrevista da empresa MSCI

Write a C++ code to check if a string is a palindrome or not.