The statement "Not all that glitters is gold" can be written as the negation of "All things that glitter are gold":
eg(∀x(glitters(x)⇒gold(x)))
Using the logical equivalence P⇒Q≡egP∨Q:
eg(∀x(egglitters(x)∨gold(x)))
Applying De Morgan's Law for quantifiers:
$$\exists x
eg (
eg glitters(x) \vee gold(x)) \equiv \exists x (glitters(x) \wedgeeg gold(x))$$
This means "there exists something that glitters and is not gold", which corresponds to option (D).