Texas Instruments interview question

How does a CMOS transistor work?