Design Memory Allocator
Design a memory allocator managing n contiguous units. Support allocating a block of `size` consecutive free units with a given ID (returning the start index), and freeing all units with a given ID (returning the count).
Design a memory allocator managing n contiguous units. Support allocating a block of `size` consecutive free units with a given ID (returning the start index), and freeing all units with a given ID (returning the count).