Domanda di colloquio di Tata Consultancy Services

How do you write the Producer Consumer problem.