L&T Technology Services interview question

How Transistors works?