Quest Global Interview Question

Explain working of transistor in brief