Agilosoft interview question

Write a code to check whether the matrix is symmetric ?