NVIDIA Interview Question

Implement simple malloc function.