Answer :

The question can't really be answered, you didn't give any information as to which three medians it was passing through. If you still need help, message me and I'd be happy to help. 
AL2006
Light doesn't bend as it passes through a (homogeneous) medium. It only bends at the spot where it crosses a boundary between one medium and another one. The amount of bend depends on what BOTH of them are, and you haven't told us ANY of them.

Other Questions