(d) Work done in rotating an electric dipole in an uniform electric field $(E)$ through an angle $\theta$ from the direction of field is
$W = pE\left( 1 - \cos\theta \right)$
Where p is electric dipole moment.
If the dipole is to be rotated to be and anti-parallel to the field $(\theta - 180{^\circ})$, then
$W = pE\left( 1 - \cos{180{^\circ}} \right)$
$\ \ \ \ \ \ = pE\left\lbrack 1 - ( - 1) \right\rbrack = 2pE$