Microsoft interview question

2D array questions