Zendesk Interview Question

Print elements from a 2D array in spiral form.