Solution for USACO problem "Dual Palindromes"
Brute force algorithm