Domanda di colloquio di Meta

how would you write code to traverse a matrix