@Rishabh_Singh8 the structure that they have given is one of many such conformations of quinol. Only in one structure the dipole moments cancel out. In the other conformations, the dipole moment doesn't cancel. Hence the overall dipole moment of such molecules is not zero.
You might refer to this.