System design interview question
Design Producer-Consumer Queue
Design a thread-safe producer-consumer queue with blocking put/take semantics.
Practice this question step by step with an AI interviewer that reviews your requirements, your architecture and your trade-offs, and scores the design.