Given two topological spaces $\left\langle X,\tau\right\rangle $, $\left\langle Y,\sigma\right\rangle$ and a function $X\overset{f}\longrightarrow Y$. Would someone please sketch a proof that
(1) $\quad$ For all sets $M\subset Y$, it holds that $x\in \overline{f^{-1}(M)}\Rightarrow f(x)\in \overline{M}$
is equivalent with that $f$ is continuous?