solution: spiral matrix 1