Do not fool by the picture.
D guesses this color right because D sees both B and C have the same color caps.