Veeva Systems interview question

Given a 2D array, print it in spiral order