Change to indirect speech: He said to me, "Where do you live?"
AHe asked me where do I live.
BHe asked me where had I lived.
CHe asked me where I live.
DHe asked me where I lived. ✓
Explanation
Option D (He asked me where I lived.) correctly applies the required reporting structure and tense/pronoun changes.