Pregunta de entrevista de Texas Instruments

How does a diode work?