The pronoun that correctly completes the sentence is option B. Whoever.
The complete sentence should be: Thank whoever brought this delicious fruit salad to dinner. We used "whoever" instead of whomever because it is used as a subjective pronoun. Whomever is used as an objective pronoun.