Microsoft Interview Question

Write a function to print an array in a spiral.