AMD interview question

Explain how a MOSFET works