Does anybody from K12 remember the answer to this question?

What is the function of the noun clause in this sentence?

What she should do next was Kam's most urgent question.

indirect object

direct object

appositive

subject