Capital One interview question

Questions about OOP