IMEC (Belgium) interview question

How does a transistor work?