Question d’entretien chez Seagate Technology

Write code to go through the matrix and make mathematical operations, then optimize your solution.