4. (10%) In the figure, light enters a 90° triangular prism at point P with incident angle θ, and then some of it refracts at point Q with an angle of refraction of 90°. What is the index of refraction of the prism in terms of θ? (Assume the refractive index of air, nair = 1)