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