usaco; solve "Palindromic Squares" from Chapter 1, Section 2