Pregunta de entrevista de Intel Corporation

How does a PN junction diode work.