Cadence Design Systems interview question

basic c++ knowledge, and some whiteboard coding.