Amazon interview question

Print matrix in spiral order