Pregunta de entrevista de Wipro

How does a relay work?