memory of size n with all elements set to 0.memory array to find a contiguous block of size free units (value 0).
b. If found, set these units to mID and return the starting index of the block.
c. If not found, return -1.memory array.
b. For each unit with value mID, set it to 0 and increment a counter.
c. Return the counter value, indicating the number of units freed.