[guided]We assume the sequential condition and prove continuity by the open-preimage criterion: for every open set $V\in\tau_Y$, we must prove that $f^{-1}(V)$ is open in $(X,\tau_X)$. Fix such a set $V$. If $f^{-1}(V)=\varnothing$, then $f^{-1}(V)$ is open by the topology axioms, so we may assume $f^{-1}(V)\ne\varnothing$ and fix a point $x\in f^{-1}(V)$.
The goal is to prove that $f^{-1}(V)$ is a neighbourhood of this arbitrary point $x$. Since $(X,\tau_X)$ is first-countable, there exists a countable local base $(U_m)_{m\in\mathbb N}$ at $x$. This means that each $U_m\in\tau_X$ contains $x$, and for every open neighbourhood $W\in\tau_X$ of $x$, there exists $j\in\mathbb N$ such that $U_j\subset W$. Define the decreasing neighbourhood sequence $(B_m)_{m\in\mathbb N}$ by
\begin{align*}
B_m:=\bigcap_{j=1}^{m}U_j.
\end{align*}
Each $B_m$ is an open neighbourhood of $x$, because it is a finite intersection of open sets containing $x$.
Suppose, toward a contradiction, that $f^{-1}(V)$ is not a neighbourhood of $x$. Then no open neighbourhood of $x$ is contained in $f^{-1}(V)$. Applying this to the open neighbourhood $B_m$ for each $m\in\mathbb N$, we get
\begin{align*}
B_m\not\subset f^{-1}(V).
\end{align*}
Thus for every $m\in\mathbb N$ there exists a point $x_m\in B_m\setminus f^{-1}(V)$. This choice defines a sequence $(x_m)_{m\in\mathbb N}$ in $X$.
We now verify that this sequence converges to $x$. Let $W\in\tau_X$ be an open neighbourhood of $x$. Since $(U_m)_{m\in\mathbb N}$ is a local base at $x$, choose $j\in\mathbb N$ such that $U_j\subset W$. For every $m\ge j$, the definition of $B_m$ gives $B_m\subset U_j$, because $U_j$ is one of the finitely many sets intersected in $B_m$. Hence, for every $m\ge j$,
\begin{align*}
x_m\in B_m\subset U_j\subset W.
\end{align*}
Therefore $(x_m)_{m\in\mathbb N}$ is eventually in every open neighbourhood of $x$, which is exactly the definition of $x_m\to x$ in the [topological space](/page/Topological%20Space) $(X,\tau_X)$.
By the assumed sequential property, the convergence $x_m\to x$ implies $f(x_m)\to f(x)$ in $(Y,\tau_Y)$. Since $x\in f^{-1}(V)$, we have $f(x)\in V$, so $V$ is an open neighbourhood of $f(x)$. The definition of convergence in $Y$ therefore gives an index $N\in\mathbb N$ such that for every $m\in\mathbb N$ with $m\ge N$,
\begin{align*}
f(x_m)\in V.
\end{align*}
Equivalently, $x_m\in f^{-1}(V)$ for every $m\ge N$. This contradicts the construction $x_m\in B_m\setminus f^{-1}(V)$ for every $m\in\mathbb N$.
The contradiction shows that $f^{-1}(V)$ is a neighbourhood of $x$. Because $x\in f^{-1}(V)$ was arbitrary, $f^{-1}(V)$ is a neighbourhood of each of its points. A subset of a topological space is open exactly when it is a neighbourhood of each of its points, so $f^{-1}(V)$ is open in $X$. Since $V\in\tau_Y$ was arbitrary, the preimage of every open subset of $Y$ is open in $X$, and therefore $f:X\to Y$ is continuous.[/guided]