Pocket Gems interview question

print an 2D array in spiral order.