Return a new array that surrounds the existing array Z with a one-element-wide border of 0's on every side (so each dimension grows by 2).
Z
solve(...)