The gerund in the sentence is "competing" and it is acting as a noun.
The gerund in the sentence is "competing," and it is acting as a noun. A gerund is a verb form ending in "-ing" that functions as a noun in a sentence. In this case, "competing" is the subject of the sentence and is being used to talk about an activity that can boost confidence and make friends.