What i think
In that trick question where there was the strip of mg and iron in the beaker with MgSo4 solution,
MgSo4 acts as the electrolyte just like NaCl as it is a salt.
Hence even though the solid Mg and iron is not drictly connected,
because of the electrolyte, they are indirectly...