You need a definition of a function. Do your materials provide such a definition?
Most clearly, if 2 y-values lead to the same x-value, you've a relation and not a function. In this case:
y = 1 ==> (1^2) = 1
y = -1 ==> ((-1)^2) = 1
What does that say about function or relation?