NVIDIA interview question

write new malloc and free