Question d’entretien chez Cisco

How would you implement malloc()?