ITI Limited interview question

How does a digital design of MOSFET work?