Prove that there does not exist a continuous function over reals for which it takes on every value exactly twice
For each $y \in \mathbb{R}$ either no $x$ with $f(x) = y$ or two such values of $x$. Show that $f$ is discontinuous.