B is a function while A isn't
Work Step by Step
For the black graph(A) we see a circle like object near O. We see we can easily draw a vertical line through 2 points right of the origin. Graph B is obviously a cubic function studied earlier in algebra. We CANNOT draw a vertical line through more than one point.