Count palindromes

CodeChef - COUNTPAL