The water can not enter the pinhole only when the hydrostatic pressure is equal to the excess pressure. hρg=
2T
r
Here, h is the depth upto which the cylinder is immersed, T is the surface tension of the water and r is the radius of the pinhole. Substituting the given value in above expression, we get h=