Pergunta de entrevista da empresa Porsche Engineering Services

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