I saw this cool optical effect in a experiment on Youtube: 

<https://www.youtube.com/watch?v=G303o8pJzls>

Could anyone explain to me why the arrow points in the opposite direction?

I have read something about the refraction index of the glass and water, but it's not clear to me how those cause the effect.