Checking 2d Arrays to Determine if they are Magic Squares (all sums are the same)

Duplicate post