I'm a physics tutor. This is not a homework problem. I'm unable to solve this problem.
The energy of electric interaction between these dipoles will be:

Choose the correct answer from:

I tried taking P1=q1*d1 and P2=q2*d2 then calculated Potential energy between (q1,-q1), (q1,-q2), (q2,-q2), (-q1,q2) and used certain approximations but couldn't get to any of the results shown.