Let $X$ be a set and let $Y$ be a Hausdorff space. Let $f\colon X \to Y$ be a given mapping. Define $U \subset X $ to be open in $X$ if, and only if $U = f^{-1}(V)$ for some set $V$ open in $Y$. This defines a Hausdorff topology on $X$.
I have no idea how to start with.
There's nowhere else to start, but with definitions! That having been said, I'm assuming you know the definition of a topology.
Let $\tau$ be the collection of sets described in your question. That is, $\tau$ is the set of all $U\subseteq X$ such that $U=f^{-1}(V)$ for some open $V\subseteq Y$. Then,
$$X=f^{-1}(Y)$$
so $X\in\tau$.
$$\emptyset=f^{-1}(\emptyset)$$
so $\emptyset\in\tau$.
Let $U_{1},\ldots,U_{n}\in\tau$, say $U_{i}=f^{-1}(V_{i})$ where $V_{i}\subseteq Y$ is open. Then,
$$\bigcap_{1}^{n}U_{i}=\bigcap_{1}^{n}f^{-1}(V_{i})=f^{-1}\left(\bigcap_{1}^{n}V_{i}\right)$$
Certainly $\bigcap_{1}^{n}V_{i}$ is an open set of $Y$, so $\bigcap_{1}^{n}U_{i}$ is an element of $\tau$. Next we let $\{U_{\alpha}\}$ be a collection of elements of $\tau$, say $U_{\alpha}=f^{-1}(V_{\alpha})$ where $V_{\alpha}$ is open in $Y$. Then
$$\bigcup_{\alpha}U_{\alpha}=\bigcup_{\alpha}f^{-1}(V_{\alpha})=f^{-1}\left(\bigcup_{\alpha}V_{\alpha}\right)$$
Certainly $\bigcup_{\alpha}V_{\alpha}$ is open in $Y$, so $\bigcup_{\alpha}U_{\alpha}$ is an element of $\tau$. We then have that $\tau$ is a topology on $X$.
This topology is not necessarily Hausdorff
Let $X$ be the underlying set of $\mathbb{R}$ and let $Y=\{0\}$ with the indiscrete topology. Then $Y$ is Hausdorff, and the constant function $f:X\rightarrow Y$ can be our given map. The topology described above is then the indiscrete topology on $X$, which is not Hausdorff.
If the function is injective, then the topology is Hausdorff.
If $f$ is injective, then given distinct $x,y\in X$ we have that $f(x)$ and $f(y)$ are distinct in $Y$. Then, because $Y$ is Hausdorff there would be disjoint open sets $V_{1},V_{2}\subseteq Y$ containing $f(x)$ and $f(y),$ respectively. Then $f^{-1}(V_{1})$ and $f^{-1}(V_{2})$ are disjoint open sets of $X$ that contain $x$ and $y$, respectively. Thus $X$ equipped with $\tau$ is Hausdorff.