Observe the figure, each element in the domain corresponding to one element in the range.
\So, this mapping represents a function.
\It does not matter if two elements of the domain are paired with the same element in the range.
\NOTE:
\Function: A function is a relation in which each element of the domain is paired with exactly one element of the range.
Yes, The relation is a function.