单项选择题

He asked me how long () going to stay in the hotel.

A. time was I
B. time I was
C. was I
D. I was