Pergunta de entrevista da empresa a1qa

Main question was about OOP based question.