Suppose guess a is right.
Ding guess: C 3, D 4
Ding didn't guess any of them, which doesn't accord with the meaning of the question.
It is wrong to guess that Ding Laosan must be wrong.
∴ A guessed right B, and the fourth one was right.
The fourth contestant is B.
I hope I can help you ~ ~