Your question is Stock Exchange 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 stock exchange system(3 consecutive questions, with a question built on previous one).
Treat this as a practical, three-part system design exercise. Explain the core architecture first, then extend it for scale, reliability, and operational correctness. Address data flow, ordering, persistence, concurrency, failure recovery, observability, and any machine-learning components only where they materially improve the exchange system.