Qualcomm interview question

Basic question about explain what makes an transistor.