spiral matrix II

512ms
524ms