Best Buy interview question

What is an example of when you would refactor code