A bar magnet of magnetic moment m is aligned parallel to the direction of uniform magnetic field. what is the work done to align its magnetic moment
(i) opposite to the field
(ii) normal to the field.