title: Transform list into 2D array in specific block-ish order
body: <p>I am struggling to solve problem which is to transform list of elements into 2D array, but in specific block-ish order shown on this image. Blocks are always in NxN shape.</p>
  <p><a href="https://i.stack.imgur.com/5zDXB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5zDXB.png" alt="image shows list and output array with elements" /></a></p>
  <p>any python code or pseudocode would be helpful :)</p>