The Number of Palindromes

HDU - 3948