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.
Amit said to me, "While I was working, you were nagging me."
1
Amit told me that while he had been working, I was nagging him.
2
Amit told me that while I had been working, I had been nagging him.
3
Amit told me that while he has been working, I have been nagging him.
4
Amit told me that while he was working, I was nagging him.