Microsoft Interview Question

Write the code for the Producer-Consumer problem.