Prove that the polynomial $x^nf(1/x)$ with reverted coefficients is also irreducible polynomial over $\mathbb{Q}$

Assume $f(x)=g(x)h(x)$ with $\deg g=k$, $\deg h=m$. Then the other polynomial is $x^nf(1/x)$ and we have $x^nf(1/x)=x^kg(1/x)\cdot x^mh(1/x)$.