Glassdoor interview question

Producer - Consumer problem