NVIDIA interview question

Design memory in C++