Twingate interview question

Implement a malloc-style memory allocator.