R.R. Donnelley interview question

How would you try to resolve bad software code within an internal application.