GEP Interview Question

Design a traffic lights system