Texas Instruments interview question

Describe how a transistor works.