$f:X→Y$ is a closed map. Suppose that the inverse image of each point in $Y$ is a compact subset of $X.$ Show that $f^{-1}(K)$ is compact in $X$ whenever $K$ is compact in $Y.$
This is my homework and I understand $Y$ is a $T_1$ space. But what should I do next?