When someone acts towards you the same way you act towards others in order to teach you a lesson about the way you are acting.
Example: “Did you see those people cutting in front of us in the line? Let’s cut in front of them and give them a taste of their own medicine!”