Premium problem84. All Contiguous 3×3 Blocks

Hard Locked

Extract all contiguous 3×3 blocks from the 10×10 matrix Z, sliding the window one row/column at a time. Return the (8, 8, 3, 3) array of blocks.

Premium problem

This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.

Implement solve(...)