DEFINITION: Let $M$, $N$ be two metric spaces. $f:M\rightarrow N$ is a closed function when for all closed $F\subset M$ its image $f(F)$ is closed in $N$.
PROBLEM $f:M\rightarrow N$ is a closed function if and only if for all $y\in N$ and all open $V\subset M$ with $f^{-1}(y)\subset V$, there exists an open $U\subset N$ such that $f^{-1}(y)\subset f^{-1}(U) \subset V$.
PROOF ATTEMPT: ($\rightarrow$) Let $f$ be a closed function, $y\in N$ and $V\subset M$ such that $f^{-1}(y)\subset V$. Since V is open and $f$ is closed, $M-V$ is a closed and $f(M-V)$ is closed. Then, $N-f(M-V)$ is open, and since $f^{-1}(y)\cap M-V=\emptyset$, then ${y}\cap f(M-V)=\emptyset$ $\implies$ $y\in N-f(M-V)$ which is open, then there is some open $U$ such that $y\in U\subset N-f(M-V)\implies U\cap f(M-V) = \emptyset \implies U \subset f(V) \implies y\subset U\subset f(V)$ and if we apply $f^{-1}$, then $f^{-1}(y)\subset f^{-1}(U) \subset V$.
QUESTION: Is ($\rightarrow$) correctly proven? How could I prove ($\leftarrow$) ? Thanks so much for your answers.
You still need to fix the statement of the problem, but your proof is correct now. To prove the other direction, suppose that $f$ is not closed, so there is a closed $C\subset M$ such that $f(C)$ is not closed. Let $y\in \bar{f(C)}\setminus f(C)$. $f^{-1}(y) \in C^c$ open, so there is a $V\subset N$ open such that $f^{-1}(y) \in f^{-1}(V) \subset C^c$. However, because $y$ is in the closure of $f(C)$, by definition this means that $V\cap f(C) \neq \emptyset$, so let $z$ be in the intersection. Since $z\in f(C)$, there must be $x\in C$ such that $f(x)=z$. This means that $x\in f^{-1}(V)$ since $f(x)\in V$. But $x\notin C^c$, which contradicts $f^{-1}(V)\subset C^c$.