Nagarro Interview Question

Print the 2d array in spiral form