I was wondering how to solve: $$\lim_{x \to 0} f(f(x))$$ for the attached graph.
This is what I tried: \begin{align} \lim_{x \to 0} f(f(x)) &= f\left[\lim_{x \to 0} f(x)\right] \\ &= f(2) = -1 \end{align} but the correct answer is supposed to be $-2$, how do I arrive at that answer? Thanks

Note that since
$$\lim_{x\to 0} f(x)=2$$
and in a deleted neighborhood of $x=2$ we have $f(x)<2$ then
$$\lim_{x\to 0} f(f(x))=\lim_{y\to 2^-} f(y)=-2$$