This problem is taken from Section VIII.4 of Theodore Gamelin's Complex Analysis:
Let $f(z)$ be an analytic function on the open unit disk $\mathbb{D}=\{|z|<1\}$. Suppose there is an annulus $U = \{r<|z|<1\}$ such that the restriction of $f(z)$ to $U$ is one-to-one. Show that $f(z)$ is one-to-one on $\mathbb{D}$.
Any hints?