Statement of the question:
Let $D$ be the open disk centered at $0$. Let $\overline{D}$ and $\partial{D}$ denote the closure and boundary of $D$ respectively. Let $f$ and $g$ be functions holomorphic on $D$ and continuous on $\overline{D}$ which satisfy the following:
$$|f(z)|\leq |g(z)| \hspace{1in} (\forall z\in D)$$ $$|f(z)| = |g(z)| \hspace{1in} (\forall z\in \partial{D})$$ $$f(z)\neq 0 \hspace{1in} (\forall z\in \overline{D}\setminus \{0\})$$
Show that there exists $\alpha\in \mathbb{C}$ with $|\alpha|=1$ and $m\in \mathbb{N}\cup \{0\}$ such that $f(z)=\alpha z^m g(z).$
I think the solution is similar to this: Suppose $f$ and $g$ are entire functions, and $|f(z)| \leq |g(z)|$ for all $z \in \mathbb{C}$, Prove that $f(z)=cg(z)$.
However, we are not really dealing with entire functions, so I am not sure how to work with this. I am guessing the solution uses analytic continuations?