By definition a function is a relation in which each point from the independent value has only one value in the dependent value. 
in this case the relation A is not a function since there are more than 1 image for each point.
Same happens with relation B.
Relation C 
Relation D 
Relation D describes the behaviour of a function 
This is another example of a function