Citadel Interview Question

Write the code for a producer/consumer.