Arista Networks interview question

Design a memory allocator module.