Added palindrome.cpp from hackermeter.com.