Wolfspeed Interview Question

how do a diode work?