Microsoft interview question

Design a traffic light system