Answer:
This is an example of Irony. Irony is a figure of speech in which words are used in such a way that their intended meaning is different from the actual meaning. In this case, the speaker is saying that Mary is not bad, but they are actually implying the opposite, that she is bad. This creates a contrast between what is said and what is meant.