Since the population of finches had decreased when deforestation and logging started, and it returned to its original values prior to deforestation when locals started to replating trees, it follows from these facts that trees are being a limiting factor in finches' populations, either because they're acting as niches, food, both or anything else that these populations needed to survive.
Therefore, the correct answer to this question is option D.