Let $\phi_k$ be bounded functions with the support on the domain of the corresponding $Y_k$. Consider:
$$
f(Y_1, Y_2, \ldots, Y_{n-1}, Y_n) = \phi_1(Y_1)\phi_2(Y_2) \cdots \phi_{n-1}(Y_{n-1}) \phi_n(Y_n)
$$
The independence of $Y_1$ from the remaining random variables means that:
$$
\mathbb{E}\left(\phi_1(Y_1)\phi_2(Y_2) \cdots \phi_{n-1}(Y_{n-1}) \phi_n(Y_n)\right) = \mathbb{E}\left(\phi_1(Y_1)\right) \cdot \mathbb{E}\left(\phi_2(Y_2) \cdots \phi_{n-1}(Y_{n-1}) \phi_n(Y_n)\right)
$$
Since $Y_2$ is also independent of the other $n-1$, we get:
$$
\mathbb{E}\left(\phi_1(Y_1)\phi_2(Y_2) \cdots \phi_{n-1}(Y_{n-1}) \phi_n(Y_n)\right) = \mathbb{E}\left(\phi_1(Y_1)\right) \cdot \mathbb{E}\left(\phi_2(Y_2)\right) \cdot \mathbb{E}\left(\phi_3(Y_3) \cdots \phi_{n-1}(Y_{n-1}) \phi_n(Y_n)\right)
$$
Continuing for $k \leqslant n-1$ we get:
$$
\mathbb{E}\left(\phi_1(Y_1)\phi_2(Y_2) \cdots \phi_{n-1}(Y_{n-1}) \phi_n(Y_n)\right) =\prod_{k=1}^{n-1} \mathbb{E}\left(\phi_{k}(Y_k)\right) \cdot \mathbb{E}\left(\phi_n(Y_n)\right) = \prod_{k=1}^{n} \mathbb{E}\left(\phi_{k}(Y_k)\right) \tag{1}
$$
Since eq. $(1)$ holds for arbitrary bounded functions $\phi_k$, it implies that $\{Y_k\}$ are independent of one another and, in particular, that $Y_n$ is independent of the previous $n-1$ random variables $Y_1,\ldots, Y_{n-1}$.