Pregunta de entrevista de Ericsson

What is a diode.? Explain it's function.