Pergunta de entrevista da empresa PTC

Basic knowledge with logical question