Which of the following represents a function

Answer:
D represents a function pretty sure I had a problem like this as well
Step-by-step explanation: