Applied Materials interview question

Implement malloc in C