NVIDIA interview question

Implement memcopy