Mapping/Injective and preimage surjective/Exercise

Let and denote sets, and let

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

is surjective.