Question d’entretien chez Microsoft

Write a program to print array in spiral order .