Nagarro interview question

Print the 2d array in spiral form