Ericsson Interview Question

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