Domanda di colloquio di eBay

Navigate through a 2D array in a spiral or something like that.