Intel Corporation Interview Question

Describe how a transistor works?