Clipboard Interview Question

Coding Round 1 - Dimmer and Bulbs problem