Microsoft interview question

Draw a spiral in a 2d array