Siemens Energy Interview Question

How distance relays work and where it is used?