L&T Technology Services Interview Question

How Transistors works?