Mirraw interview question

How will you implement memory allocation.