Advanced Energy interview question

Explain how a BJT works?