Cadence Design Systems interview question

Design question, questions of algorithms