Larsen & Toubro interview question

How does a relay work?