Broadcom interview question

Implement a queue, producer-consumer problem