Update palindrome.cpp

Neil Logan, Palindrome Test:

I simply used a loop to check the first and last letter were the same, then the second and second last letter, and so on.