Pergunta de entrevista da empresa NVIDIA

Write an implementation of malloc in C (referring to the stack and heap).