Pergunta de entrevista da empresa STMicroelectronics

What are transistors and how do they work?