The concept necessary to solve this problem is related to Snell's law, which describes the relationship between the angles of incidence of light at the rate of diffraction coefficient of materials, mathematically that is,
The refractive index for the water is 1.33 and for the air is 1, then replacing we will have,
The relation between the angle of incidence and the angle above the horizon at which the friend sees the sun is,
The angle of incidence is greater than the angle of refraction. This is because the incident and refracted angles are inversely proportional to the refractive index of the medium.