How is the underlined pronoun in the sentence used?

(Them is underlined)
Sandy showed them her coin collection.

A.
object of a preposition

B.
indirect object

C.
subject

D.
direct object