Intel Corporation interview question

Suggest an implementation for malloc and free