Implement a memory allocator with malloc/free | OpenAI Coding Question