Question d’entretien chez Infosys

What is a diode? And how does it work?