A function is a relation in which each input (domain) has only one output (range). In the relation , y is a function of x, because for each input x , there is only one output y.
In this case, you have two sets of input (domain) and 4 sets of output (range) which do not fall in the definition of a function. Thus, this relation is not a function.