Valtech interview question

traverse the matrix

Valtech Interview Question: traverse the matrix | Glassdoor