Cisco Interview Question

Write a multithread program to simulate traffic light (only green or red) in a four-way intersection.