Amazon Interview Question

Design threading/parallelisation for a traffic lights system