The observer just sees down to C past the rim A. In a cube AB=BC, so the line of sight runs at 45∘ to the vertical.
With water of depth h, the same line of sight meets the surface at horizontal distance a−h from wall AB (a being the side). It refracts at angle r:
sinr=1.33sin45∘=0.532,tanr=0.628.
The ray then reaches the bottom at a−h+htanr. For this to be the object, at a−10 cm:
h(1−tanr)=10⟹h=0.37210≈27 cm.
(C)