Question d’entretien chez Ericsson

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