HP Inc. interview question

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