Answer explained
Direct speech of: Smita asked Kavita what she was doing there.
Correct answer: (B) Smita said to Kavita, “What are you doing here?”; (C) Smita said to Kavita, “What are you doing there?”
The usual classroom conversion restores was doing to are doing and there to here, giving B. C is also possible if the original speaker referred to a different place; the reported sentence alone does not determine the location. Both are accepted.