Solved URI 1578 - Matrix of Squares