LLD - Design — Elevator System
In a system managing states
idle, moving_up, and moving_down, how can you combine state management with event logging to track all state changes efficiently?