Figure shows two small bar magnets having dipole moments M1 and M2 placed at separation r. Find the magnetic interaction energy of this system of dipoles for d<<r.