Design order stream with state transitions | Coinbase Interview Question