Proof (closed set in complete metric space is complete)

Completeness $\implies$ closure

Let $\set{y_n}$ be a sequence in $Y$ and converges in $X$. $\set{y_n}$ is convergent, so it is also Cauchy, and by completeness, $y_n$ converges in $Y$. Thus $Y$ is sequentially closed and therefore closed.

Closure $\implies$ completeness

Let $\set{y_n}$ be a sequence in $Y$ and is Cauchy. Since $X$ is complete, $y_n$ converges in $X$. But since $Y$ is closed, it is sequentially closed and therefore closed.