Answer explained
Choose the direct speech of: She asked me what I was doing there.
Correct answer: (A) She said to me, “What are you doing here?”
Restore the direct question order: What are you doing here? The reported I refers to the listener, so it becomes you in the original question.