The sentence which uses quotation marks correctly is:
D) Megan asked, "Did Hailey say, 'This will never work'?
This is correct because there has to be an extra set of quotation marks (') inside the parentheses when quoting another person. Also, the question mark has to be outside of the second set of quotes because Hailey did not ask the question, she made a statement.