Pergunta de entrevista da empresa Quali

make a code with 3 classes to be executed properly.