input x - -1, 0, 1, 2

output y - 3, 4, 3, 0

In that order, is y a function of x?

I'm pretty sure it is, but I'm not entirely sure how to explain why.

Thank you!

yes