Which of the following relations represent a function?
A. {(-1,-3),(3,2),(3,7)}

B.{(-3,7),(3,-7),(3,7)}

C. {(-1,4),(-1,7),(3,5)}

D. {(-1,4),(2,7),(3,7)}