Suppose $A$ and $B$ are two finite sets having same cardinality. Show that a function $ f:A \to B $ is one-one if it is onto
Show that, if $f:A\to B$ is a function, with $A$ and $B$ being finite sets, and $|A|=|B|$, then $f$ is one to one iff $f$ is onto.