A 10-year-old girl accused of bullying a classmate was given a taste of her own medicine.