For a polynomial $f(X)\in \mathbb C[X]$, and $a\in \mathbb C$, let $f^{-1} (a):=\{\mu \in \mathbb C : f(\mu)=a\}$.
Now let $f(X), g(X) \in \mathbb C[X]$ be non-constant polynomials such that $f^{-1}(0)=g^{-1}(0)$ and $f^{-1}(1)=g^{-1}(1)$, then is it true that $f=g$ ?
Let $f^{-1}(0)=\{\mu_1,...,\mu_k\}; f^{-1}(1)=\{\gamma_1,...,\gamma_l\}$.
Then $f(X)=c_1\prod_{i=1}^k(X-\mu_i)^{n_i}, f(X)-1=c_1'\prod_{i=1}^l(X-\gamma_i)^{n_i'}$
$g(X)=c_2\prod_{i=1}^k(X-\mu_i)^{m_i}; g(X)-1=c_2'\prod_{i=1}^l(X-\gamma_i)^{m_i'}$
But I don't know how to proceed further.
Please help