Zendesk interview question

Print elements from a 2D array in spiral form.