Amazon interview question

Spiral print a 2D array