Wolfspeed Interview Question

Explain how a diode works