For a function, every element in the domain must have a unique image in the range.
On checking the domain and range provided in the question, we can see that there are two images for the range when the domain equals -2:
Therefore, the given domain and range violate the property of a function.
The relation is NOT a function.