Jayalakshmi interview question

2 D array traversal code