Texas Instruments Interview Question

How does a CMOS transistor work?