Barclays Interview Question

SOILD, OOP stuff like that