How is the underlined pronoun used in the sentence?

Do you know whose cat is roaming the neighborhood?

A.
possessive

B.
object of a preposition

C.
subject

D.
direct object