What is the effect of this

A wave is transmitted into a medium where it moves faster, and then back into a medium where it moves slower again.