Suppose that $f$ is a function from $A$ to $B$, where $A$ and $B$ are finite sets with $|A|=|B|$. Show that $f$ is one-to-one if and only if it is onto.
My prof. wants us to use the Schröder-Bernstein theorem to prove this. I am not really sure how to go about solving this at all any