WD interview question

design logic gate using BJT, MOSFET