Consider a finite state machine (FSM) controlling a motor speed system with a single button. The states and events are defined as follows:
States:
1. STATE_STOPPED – Motor is off.
2. STATE_SLOW – Motor runs at slow speed.
3. STATE_FAST – Motor runs at fast speed.
4. STATE_OVERSPEED – Motor runs at an unsafe speed.
Events:
1. EVENT_BUTTON_PRESS – Button is pressed.
2. EVENT_SENSOR_ALERT – A sensor detects overspeed.
If the initial state is STATE_SLOW, what will be the next state after one EVENT_BUTTON_PRESS and one EVENT_SENSOR_ALERT event?