usaco; "Dual Palindromes" - separate the dual palindrome check