eBay interview question

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