Pergunta de entrevista da empresa General Atomics

Write a function in C++ to check if a string was a palindrome. Draw on paper how pointers and strings are represented in memory cells.