Read each example of dialogue from A Tale of Two Cities by Charles Dickens. Which dialogue is correctly punctuated?

A "Eighteen years"! said the passenger, looking at the sun. "Gracious Creator of day! To be buried alive for eighteen years"!
B "Eighteen years!" said the passenger, looking at the sun. "Gracious Creator of day! To be buried alive for eighteen years!"
C "Eighteen years" said the passenger, looking at the sun. "Gracious Creator of day! To be buried alive for eighteen years".
D "Eighteen years" said the passenger, looking at the sun "Gracious Creator of day! To be buried alive for eighteen years!"