Pergunta de entrevista da empresa Microsoft

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