Microchip Technology interview question

Basic functioning of a transistor