Intel Corporation interview question

Design a state machine to control a four way intersection of varying time traffic lights.