C++ Palindrome (Using Array)