Whenever you're ready, walk me through how you'd approach this.
How would you design and implement an elevator system, including the core code and key edge cases?
Keep your answer focused on the dispatch logic, concurrency, and correctness under load. You may assume a mid-rise office building with multiple elevators and frequent floor requests. Be prepared to explain the data structures, scheduling policy, and how you would handle failures, starvation, and maintenance mode.