In the complex plane, say $a_n \rightarrow \infty$ and $d_n$ and $A_n$ are arbitrary complex numbers. can we find an entire function with $f(a_n)=A_n$ with order $d_n$? (here "order" means $f(z)-A_n$ has a zero with order $d_n$)

If without restrictions on the order, it is an exercise from Ahlfors 3rd edition P197 No.1. Following his hint, an answer is like $\sum_{n} g(z) \frac{A_n}{g^{\prime}(a_n)} \frac{e^{r_n(z-a_n)}}{(z-a_n)}$ for some suitable chosen $r_n$ where $g(z)$ is an entire functions with simple zeros at $a_n$. I am not sure how to do with the requirement on orders. It sounds like a standard result, I greatly appreciate if anyone with an idea or reference to this problem.