Question d’entretien chez eBay

How would you program the street lights at a four-way intersection. Asked to write pseudo-code for the program.