Microsoft Interview Question

Design a traffic light system for a 3 roads intersection.