Answer:
The correct answer is "to build a nest"
Step-by-step explanation:
Infinite phrases are formed by the preposition "to"+ "bare verb" and its modifiers. Infinitive phrases have different functions within a sentence such as nouns, adjectives or adverbs.
In this case the infinitive phrase is acting as noun since it is the direct object of the sentence.