Pergunta de entrevista da empresa eBay

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