Terex Corporation interview question

What is a diode?