Subex interview question

Write the producer consumer problem