ANSWER :
Watch that , for option 1 , 3 and 4 there is two values of Y for same X . That is not possible at all. Because How can a function gives you two different output as for same input ? So it is very Clear that Option 2 is a function and the other are not function. I have marked Which are function and which are not.