Sweety said to me, "I had been writing an essay for 3 hours."
A Sweety told me that she has been writing an essay for 3 hours.
B Sweety told me that she had been writing an essay for 3 hours.
C Sweety told me that she was writing an essay for 3 hours.
D Sweety told me that she had written an essay for 3 hours.