Microsoft interview question

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