This question was asked in Ex 1.2, 12
For onto, 
Using diagram ,there is no domain in R whose
Image 1,2
Nutan Varshney's image