Pergunta de entrevista da empresa Divami

Basic oops based question, data structure and algorithm