To be a function, it is nesessary that the values of x correspond to a unique value of y (a value of x cannot correspond to 2 different values of y). The same value of y can correspond to two or more values of x
As in the given data each value of x has just one value of y. Then, it is a function.