Question d’entretien chez Microsoft

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