Update check_palindrome.cpp