NVIDIA Interview Question

Design a state machine for a traffic intersection.