NVIDIA interview question

Implement Malloc and Free using a global array