Which relation is a function?

the diagram on the top left hand side is a function
For each value of x on the domain (x- axis ) there can only be one corresponding value of y in the range (y- axis)
Apart from the diagram on the top left side, the other 3 all fail this definition