"A Taste Of Your Own medicine" means
Each medicine has its own taste
some one taking same medicine as you take
your Medicine tastes good
Got mistreated the same way you mistreat others