MetaDesign Solutions interview question

Convert 2D array to 1D