Determine whether the relation is a function. If it is a function, give the domain and the range.
$$
\begin{array}{|c|c|}
\hline \text { Input } & {\text { Output }} \\
\hline 0 & {1} \\
\hline 2 & {2} \\
\hline 4 & {3} \\
\hline 3 & {4} \\
\hline
\end{array}
$$