Meta interview question

how would you write code to traverse a matrix