How is the noun clause used in the sentence?


Why the group had gathered at the mall was a mystery.


A.direct object


B.object of a preposition


C.subject


D.indirect object