Color interview question

lightbulb and dimmer class problem