Micron Technology Interview Question

How does a transistor work?