Pergunta de entrevista da empresa Intel Corporation

write a program that checks if a matrix is a magic square