The student is not correct, for this is not a function.
Work Step by Step
In order to pass the vertical line test, we must be able to put a vertical line anywhere on the graph and not have it intersect the curve on the graph multiple times. However, the student only considers one spot on the graph. A vertical line at x=3, for instance, intersects the curve multiple times, so this is not a function.