Pregunta de entrevista de Valve Corporation

How would you implement a VLAN, in code.