This question was asked in Ex 1.1, 1
What is an onto function?

Anil Kumar's image