LLD - Design — Elevator System
Find the bug in this state transition logic:
if state == 'moving_up' and command == 'moveUp': state = 'moving_up'elif state == 'moving_up' and command == 'stop': state = 'idle'elif state == 'moving_up' and command == 'moveDown': state = 'moving_up'