Print given square matrix in spiral order