For fun, here is a solution based upon generating functions. Let $X(t)=\sum_{n=1}x_n t^n$ where $t$ is a formal variable. Since $x_n$ satisfies the relation $x_n=p x_{n+1} + q x_{n-1}$ for $n\geq 1$, we have
\begin{align}
X(t)
&=1+\sum_{n=1}^\infty x_n t^n\\
&=1+p \sum_{n=1}^\infty x_{n+1} t^n+q \sum_{n=1}^\infty x_{n-1} t^n\\
&=1+pt^{-1}\left(X(t)-1-x_1 t\right)+q tX(t)\\
\implies X(t)&=\frac{p(1+x_1 t)-t}{p-t+q t^2}\\
&=\frac{1}{1-t}\left(1+\frac{pt(x_1-1)}{p-qt}\right)\\
&=\frac{1}{1-t}+\frac{p(x_1-1)}{p-q}\left(\frac{1}{1-t}-\frac{p}{p-qt}\right)
\end{align}
Expanding these geometric series and identifying coefficients term-by-term, we have
$$\boxed{\displaystyle x_n=\frac{p x_1-q}{p-q}+\frac{p(1-x_1)}{p-q}\left(\frac{q}{p}\right)^{n}}$$
That power of $q/p$ is perhaps concerning, since if $q>p$ then it would appear that $x_n$ must necessarily grow larger than one eventually. But it should be noted that $q>p$ hardly makes sense in this context, since that would mean one is more likely to keep increasing in wealth rather than go bankrupt. (The boundary case of $p=q=1/2$ is also exceptional, and I won't consider it here.)
So I'll assume $q<p$. Then $x_n\to \dfrac{px_1-q}{p-q}$ as $n\to \infty$. But this is a bit strange: If I make my initial wealth larger and larger, then the probability of bankruptcy should converge to precisely zero. From this we deduce that $x_1=q/p$, and therefore $\boxed{x_n=\left(\dfrac{q}{p}\right)^{n}}$ is the final result. (This has the side benefit of rendering $X(t)=\dfrac{p}{p-qt}$.)