Keyence Interview Question

Can you explain what a transistor is?