Carestream Health interview question

How would you design a traffic light system?