Scenario: You’re testing a building’s elevator system. There are 10 floors, and the elevator should stop at all floors when buttons are pressed.
Problem:
- You press the buttons for floors 3, 5, and 7. The elevator stops at 3 and 7, but skips 5.
- You press buttons 2, 4, and 6. It stops at 2 and 6, but skips 4.
- Now you press 1, 8, and 9. It stops at 1 and 9, but skips 8.
Question: What might be the logic behind the skipped floors? How would you approach debugging this as a QA?