Nagarro Interview Question

Print a matrix in a spiral manner.