Answer :
The correct answer for the given question above would be option B. The sentence that is punctuated correctly is "She kept my surprise a secret, but she had a hard time doing it". The use of a comma is correctly used in this sentence, which is before the conjunction "but" which introduced a new clause.