To know if this is a function, simply perform a vertical line test on it.
If it passed the vertical line test then it is a function but if it fails it then it is not a function
In the graph given, if you draw a vertical point at any point, we woulld not have two points on the vertical line, hence it is a function