Microsoft Interview Question

Print a 2D array in spiral order