Arista Networks Interview Question

Design a memory allocator module.