Pergunta de entrevista da empresa Data Foundry

Question from OOP and DSA