Infosys Interview Question

What is a diode? And how does it work?