Texas Instruments Interview Question

Describe how a transistor works.