Crédit Agricole Interview Question

Question about OOP programming and logical question