This question is based on the simple principle of the refraction.
Refraction is the optical phenomenon in which the light ray will change its direction when fall obliquely on a refracting surface due to the change of velocity of light in the refracting medium.
Greater the refractive index,the lesser will be the velocity of light in that medium.
As refractive index[tex]= \frac{v_{1} }{v_{2} }[/tex]
Here [tex]v_{1}[/tex] is the velocity of light in first medium and [tex]v_{2}[/tex] is the velocity of light in second medium.
In case of light travelling from space to the medium we may write
[tex]\mu=\frac{c}{v}[/tex] where c is the velocity of light.
So as long as the medium is same ,there will be no change in the velocity of light.
As per the question light was initially in space. After then the light entered into glass medium whose refractive index is more as compared to space.Hence velocity of light will be decreased .
Now the light escaped through the glass.so it again enters the same medium i.e space. Hence the velocity of light will be increased now and will be equal to 'c' now .