NVIDIA Interview Question

write new malloc and free