Amazon Interview Question

Design a traffic signal control system