MasterControl interview question

Design a traffic light system.