Explanation:
the first is correct :
the graph represents a function. No vertical line can be drawn through more than one point on the graph. The graph passes the vertical line test.
as the definition of a function is simply that for every valid value of x there is exactly one associated value of y.