Citadel interview question

Write the code for a producer/consumer.