Pergunta de entrevista da empresa Cadence Design Systems

Some logical reasoning questions.