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