Xerox Interview Question

How would you deal with really bad code?