Pergunta de entrevista da empresa HP Inc.

Make an array in C++, then write an algorithm to check if the array is a palindrome