Continental interview question

2D Array