Intel Corporation interview question

Explain the functionality of a MOSFET.