Following figures show the arrangement of bar magnets in different configurations. Each magnet has magnetic dipole moment . Which configuration has highest net magnetic dipole moment [2014]

(3)
The direction of magnetic dipole moment is from south to north pole of the magnet.
In configuration (1),

In configuration (2),

In configuration (3),

In configuration (4),
