Is the following statement true?
A continuous function $f:\mathbb{R}\rightarrow\mathbb{R}$ is injective if and only if $f$ is strictly increasing or strictly decreasing.
If it's true give a proof. If it's false give a counter-example.
I think the answer is false but I just can't think of a counter-example. Any help would be useful.