Deqode interview question

2D array question was asked