Microsoft interview question

How did you refactor your code?