Pergunta de entrevista da empresa Ooyala

Write an algorithm for malloc and free.