https://medium.com/weekly-webtips/how-to-traverse-through-array-values-in-a-spiral-matrix-cd9d3b1a80c8