PassportCard Labs interview question

Refactor a bad piece of code using SOLID principles