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