To answer this question, we need to see the graph of the function carefully.
For x = -7, we can see that the function is equal to 2, that is:

For x = 0, we have that the function is equal to -1, that is:

For x = 4, we have that the function is equal to -2, that is:

We need to find the value of x. Then, we have to find the point where we "touch" the function, and then find the y-value of the function.
Therefore, in summary, we have that the only input for which f(x) = 2 is when x = -7 (option A).