Pregunta de entrevista de Microsoft

How would you implement malloc() & free() in C?