which relation is a function ?

The second choice is not a relation.
The first and third choices have multiple (input, output) pairs that have the same input. Such a relation is not a function. Any time you see this, you know the relation is NOT a function.
The best answer is the 4th choice ...
... {(0, -9), (-9, 0), (-3, -3)}