Applying Bernoulli's theorem to pints A( just at the surface of the liquid) and B( just outside the first hole in the vessel) taking the position of the hole as reference
$$P_0 + \rho_1g\dfrac{h}{3} + \dfrac{1}{2}\rho_1 v^2 = P_0 + 0 + \dfrac{1}{2}\rho_1v_1^2$$ .....(1)
$$P_0$$ - atmospheric pressure
$$v$$ - velocity of the liquid on the surface
$$v_1$$ - velocity of the liquid at the first hole
Applying Bernoulli's theorem to pints A( just at the surface of the liquid) and C( just outside the second hole in the vessel) taking the position of the hole as reference
$$P_0 +\rho_1 gh + \rho_2g\dfrac{h}{3} + \dfrac{1}{2}\rho_1 v^2 = P_0 + 0 + \dfrac{1}{2}\rho_2v_2^2$$
Putting $$\rho_2= 3 \rho_1$$,
the above eqn becomes
$$P_0 +\rho_1 gh + 3 \rho_1g\dfrac{h}{3} + \dfrac{1}{2}\rho_1 v^2 = P_0 + \dfrac{1}{2} 3\rho_1v_2^2$$ ......(2)
$$v_2$$ - velocity of the liquid at the second hole
$$v=0$$ since the liquid is at rest on on the surface
Putting $$v=0$$ in eqns (1) we get
$$v_1= \sqrt{\dfrac{2gh}{3}}$$
Putting $$v=0$$ in eqns (2) we get
$$v_2= \sqrt{\dfrac{4gh}{3}}$$
$$\therefore \dfrac{v_1}{v_2} = \sqrt{\dfrac{2}{4}}= \sqrt{\dfrac{1}{2}}$$