Intel Corporation interview question

how a basic cmos transistor works