In the following question, a question is given in Direct speech. Out of the four alternatives, choose the one which best expresses the sentence in Indirect speech.
She said, "I was leaving my house when a mendicant appeared at the main gate."
1
She said that she has been leaving her house when a mendicant appeared at the main gate.
2
She said that she was leaving her house when a mendicant appeared at the main gate.
3
She said that she had been leaving her house when a mendicant appeared at the main gate.
4
She said that she was leaving her house when a mendicant appears at the main gate.