Well, the property of a magnet that we need to use here is that the magnetic strength of magnets is more at the poles than the central region. Hold a pole of one of the bars close to the centre of the second bar. If the second bar gets attracted towards the pole of the first bar then the first bar is a magnet and the second is iron and if it does not get attracted then the first bar is iron and the second one, magnet
1 5 1