> Write a function to test whether an array is a magic square. The function must:
> • have a right argument that is a square matrix of integers (not necessarily all positive integers)
> • return 1 if the sums of the numbers in each row, each column, and both main diagonals are the same, otherwise return 0