Microsoft interview question

Implement malloc in C.