Alibaba Group Interview Question

Describe the producer-consumer problem.