QuestionShareExplain the Function of a $n-p-n$ transistor as a switch with necessary circuit diagram.