The answer is E: When she told him, "Those socks are interesting," she meant the socks looked ridiculous.
The option E is correctly punctuated because the writer started the sentence with a introdutory information "When she told him" and placed a comma before writing the exact words someone spoke, which are between quotation marks: "those socks are interesting," and another comma before the explanation about what she meant.