Pregunta de entrevista de Zendesk

Print elements from a 2D array in spiral form.