Step 1: Behaviour of ferromagnetic substances.
Ferromagnetic substances are strongly attracted by a magnet due to large magnetic susceptibility.
Step 2: Behaviour of paramagnetic substances.
Paramagnetic substances are weakly attracted by a magnet.
Step 3: Behaviour of diamagnetic substances.
Diamagnetic substances are weakly repelled by a magnet.
Step 4: Apply to given needles.
$N_1$ (ferromagnetic) is strongly attracted,
$N_2$ (paramagnetic) is weakly attracted,
$N_3$ (diamagnetic) is weakly repelled.