Uber interview question

code a 4 way light