Your question is Vending Machine System Design. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Design a vending machine. Asked in the Round 2 LLD stage. Focus on how you would turn this into an ML system for demand prediction, inventory optimization, and anomaly handling. Keep the design practical, including online serving, batch retraining, and how you would monitor drift and stockout risk.