ClearBank interview question

Refactor code using SOLID principles.