Andritz interview question

Q: Explain how does a relay work?