Revolut interview question

Different OOP design principles.