Pregunta de entrevista de Xerox

How would you deal with really bad code?