One of country music’s most famous revenge songs started as a writing idea for Gretchen Wilson before becoming a signature Carrie Underwood hit.