Pregunta de entrevista de T. Rowe Price

How can you structure your code to be easily testable?