Design an intersection traffic-light system | Amazon Interview Question