Pocket Gems Interview Question

print an 2D array in spiral order.