Pergunta de entrevista da empresa Zendesk

Print elements from a 2D array in spiral form.