Which graph represents a function?

Answer:
second one
Step-by-step explanation:
because it passes vertical line test