Johnson Controls Interview Question

What is a transistor, its use and working