Spiral Matrix II - solution