Pergunta de entrevista da empresa Texas Instruments

How does a diode work?