Pregunta de entrevista de Porsche Engineering Services

How would you transform a Simulink Switch block in C code?