Return the total number of bytes of memory consumed by array Z (the element count times the size of a single element, in bytes).
Z
solve(...)