Microsoft Interview Question

How did you refactor your code?