Ciena Interview Question

Print the 2D Matrix is spiral way .