Gen interview question

How can your code be improved for better testability?