Which of the following is a correct sentence ?

Answer: 
She denied that she had written the letter .
Which of the following is a correct sentence ?