It is important to know that a function has to pass the vertical line test, which is about drawing a vertical line across the function. If this vertical line inercepts more than one point of the function, then the graph doesn't represent a function.
Hence, it's not a function because it fails the vertical line test.The answer is B.