Domanda di colloquio di Macquarie Group

some basics OOPs question and basic dsa question