Rupeek interview question

Print array in spiral form