Domanda di colloquio di Deloitte

Matrix traversal question, had seen a variation on Leetcode