Which relation is also a function?

Answer:
D because if you graphed the others they wouldn't pass the vertical line test