Pregunta de entrevista de Cisco

How would you implement malloc()?