NVIDIA Interview Question

Implement producer/consumer problem.