Pergunta de entrevista da empresa Milenium

Write code to sum the diagonals of a matrix