This change in the populations is an example of competitive exclusion.
In this scenario, the gray squirrels are better adapted to the available food source (acorns), while the red squirrels struggle to survive after the hazelnut trees are killed off. As a result, the gray squirrels outcompete the red squirrels for resources, leading to the decline of the red squirrel population. The principle of competitive exclusion states that two species competing for the same limited resources cannot coexist at constant population values; one will outcompete the other.