Does the following table represent a function?

x
y
1
1
2
1
3
2
4
2