Let $f: [0,1] \rightarrow [0,1]$ be continuous. Any idea on how we can prove that it is not possible for $f$ to map $[0,1]$ onto $[0,1]$ exactly two-to-one. That is, there is no continuous $f$ as above such that for each $y \in [0,1]$, there are exactly two values $x_1$ and $x_2$ such that
$$y = f(x_1) = f(x_2)$$