T. Rowe Price Interview Question

How can you structure your code to be easily testable?