Intel Corporation Interview Question

how a basic cmos transistor works