Pregunta de entrevista de Qualcomm

How to implement memory allocation in C.