Respuesta :
The answer is: encountering a bear
A gerund is a noun made out of a verb and the suffix -ing. It can act as a noun, so it usually functions as a subject, predicate nominative or direct object.
In the example sentence, the phrase "encountering a bear" plus "and its cub" behave as the subject of the sentence.