Amazon Interview Question

Print the matrix in a spiral manner.