HP Inc. Interview Question

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