Syncro Medical Interview Question

How would you code a traffic system?