NVIDIA interview question

Implement a memory allocation management