Anonymous interview question

a question on 2d array matrix