Mirraw Interview Question

How will you implement memory allocation.