Pregunta de entrevista de Larsen & Toubro

How does a relay work?