Larsen & Toubro Interview Question

How does a relay work?