No 3. Using 'me' puts it into context. If 'girl' is important, then: He asked me who was the girl I had been talking to.
He said (asked), "Who was that girl you were talking to?"
- For Teachers