Count Palindromes

CodeChef - CPAL