Mapping/Surjective and preimage injective/Exercise

Let and denote sets, and let

be a mapping. Show that is surjective if and only if taking preimages

is injective.