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.
Z
(8, 8, 3, 3)
solve(...)