Capital One interview question

Banking system OOP Question.