Imperva interview question

Implement your own Malloc and Free using C.