I\'m struggling with traversing a matrix. I\'m a coding novice so I apologize if this is a basic question.
I need to write a function that, given a NxM grid, returns