Semtech interview question

Some logic gates, boolean equations OpAmp, current mirrors, common-source amplifier