Let potential of B is 0 and charge on 4th capacitor be Q then potential of l is −Q2 then potential of P is 1.5 and that of m is 1.5−Q2
So charge on 3rd capacitor is Q3=2[vp−vm]Q3=2[1.5−1.5+Q2]=Q
In same way Q2=Q1=Q
Only possible value of Q is zero.
So VAB = 1.5 + 1.5 + 1.5 = 4.5