Step 1: Indirect to direct.
The given sentence shows Smita asking a question to Kavita. In direct form, it becomes: "What are you doing here?"
Step 2: Checking options.
(A) Incorrect — "can say" changes tense.
(B) Correct — matches tense and context.
(C) Incorrect — "there" should be "here."
(D) Incorrect — shifts from question to statement.
Step 3: Conclusion.
Correct answer is (B) Smita said to Kavita, "What are you doing here?".