Microsoft interview question

reverse integer with 2d array