Let $X = \{ 1,2,3\}$ and $Y = \{ 4,5\}$.
Find whether the following subsets of $X \times
Y$ are functions from $X$ to $Y$ or not.
(i) $f = \{ (1,4),(1,5),(2,4),(3,5)\}$
(ii) $g = \{ (1,4),(2,4),(3,4)\}$
(iii) $h = \{ (1,4),(2,5),(3,5)\}$
(iv) $k = \{ (1,4),(2,5)\}$