T. Rowe Price interview question

Reverse a binary tree, explain how you would refactor something. Design patterns