Clipboard interview question

Coding Round 1 - Dimmer and Bulbs problem