UST interview question

Transistor as a switch