(a) Take two rays from O: one along the normal OM, which goes straight up, and one meeting the surface at N, a small distance x from M, at angle of incidence i. It leaves at angle r, bending away from the normal. Traced back, the refracted ray meets the vertical line through O at I, which is the image.
From the triangles OMN and IMN:
tani=hx,tanr=h′x
For near-normal viewing, the angles are small, so tan≈sin. Snell's law from water to air gives nsini=sinr:
nhx=h′x⇒h′=nh

(b)
h′=4/32.0=1.5 m
The pool looks 0.5 m shallower than it is. This is why people misjudge the depth before jumping in.