Question d’entretien chez Meta

how would you write code to traverse a matrix