Domanda di colloquio di Cadence Design Systems

the question consists of algorithms question cpp code question