Gen Interview Question

How can your code be improved for better testability?