contestada

Which quotation is correctly capitalized?

The author explained that he “Had begun to write a masterpiece.”
The author explained that he “had begun to write a masterpiece.”
The author explained that “He had begun to write a masterpiece.”