Given 1-D array Z, build a 2-D array whose first row is the first window
elements and each subsequent row is shifted by 1 relative to the previous row (i.e.
all contiguous windows of length window over Z, in order).
Sign in to write and run your own code.
solve(...)