Complete solution to Traffic Lights Challenge.