Your question is Connected Traffic Signal Design. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
In a city with n traffic lights, how would you design and make connected traffic signals green for best traffic flow?