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