By the definition of meromorphic function, $f$ and $g$ don't have any singularity other than pole (neither essential singularity nor removable singularity). Let $A=\{a_i\in\mathbb{C}:g(a_i)=\infty\}$ and B=$\{b_j\in\mathbb{C}:g(b_j)=0\}$ be the sets of all the poles and all the zero's of $g$, respectively. Then, $f(1/a_i)=\infty$ and $f(1/b_j)=0$. So, there should exist entire functions $G(z)$ and $F(z)$, in both of which $F(z)\neq 0$ and $G(z)\neq 0$ for $\forall z\in\mathbb{C}$, s.t. $$g(z)=\frac{{\prod_j (z-b_j)^{h'_j}}}{\prod_i (z-a_i)^{h_i}}G(z)$$
$$f(z)=\frac{\prod_j (z-1/b_j)^{k'_j}}{\prod_i (z-1/a_i)^{k_i}}F(z)$$
where $h$ and $k$ are positive integers.
Case I: (and a trivial case $f(1/z)=g(z)=\infty$) If $f(z)<\infty$ at $z=0$, then $f(1/z)=g(z)$ for $z\in\mathbb{C}$ by identity theorem.
$$g(z)=f(1/z)=Cz^m\frac{\prod_j (z-1/b_j)^{k'_j}}{\prod_i (z-1/a_i)^{k_i}}F(1/z), m\in\mathbb{Z}, C\in\mathbb{C}...(1)$$
This equation holds for $z\in\mathbb{C}$, so $CF(1/z)=G(z)<\infty$. By Liouville's theorem, $f(z)$ is a rational function.
Case II:
If $f(1/z)=\infty$ and $g(z)<\infty$ at $z=0$, then $f(1/z)$ has a removable singularity at $z=0$. Therefore, $f$ isn't a meromorphic function.
Case III:
If $g(z)=\infty$ and $f(1/z)<\infty$ at $z=0$, then $g$ isn't a meromorphic function for the same reason.
Q.E.D.