# MBPP 129 Write a function to calculate whether the matrix is a magic square.