Let f(x) be a function that is defined for all real x and is continuous on its domain.

Suppose that lim (x-> negative infinity) =infinity and lim (x-> infinity)= negative infinity.

Show that there is a value of x such that f(f(x)) = x.

My intuition says that I should use the IVT, but I'm not sure how...any suggestions?