Apple Interview Question

Write the code for a memory manager (init, get_memeory, free_memory, etc.)