The correct answer is: B. did/get

The sentence is in the past tense, so the verb "get" should also be in the past tense. The verb "do" is not used in the past tense in this context. The verb "does" is used in the present tense, and the verb "was/getting" is used in the past progressive tense.

The sentence can be paraphrased as: "I turned around and saw my father sitting beside me on the sofa. I said, 'How did you get here?'"