Solution 1:
To turn a situation around by using what was said/done against you against the other. Maybe best understood like this: I am exchanging roles with my counterpart, taking on his part of the script.
There are possible explanations in the urban dictionary.