Answer:
-->
Explanation:
I remember being asked something like this a while back so here's what i remember:
tie each rod to a string and hang them. the magnetized bar will face in the North-South direction and the iron bar will rest in a random direction and that's how you know which is which.
Hope that helps.. let me know if you have any follow-ups on this.