The answer is (A),
It is called a gerund and it functions as a noun in this sentience.
5.6m questions
7.3m answers