Pregunta de entrevista de Quality Compliance Systems

How would you refactor this?