UVa problem: Magic square palindromes - palindrome detection