ClearBank interview question

Was asked to refactor a file using SOLID principles.