My problem is: Let $A$ and $B$ finite sets of equal cardinality. Show that if a function $f : A \to B$ is injective then it is also surjective. Similarly show that if $f$ is surjective, then it is also injective.
My thought is since the number of elements in $|A| = |B|$, function $f: A \to B$ is bijection. But my instructor said I have to explain more. Please help me with this. I don't know how a injective function leads to a surjective function and vice versa. Thank you.